﻿@model STX.Web.Framework.Query.PagedList<STX.Domain.BizQuotePriceTemplate>
@{
    ViewBag.Title = "Query";
    Layout = null;
}
<div class="pageContent" ratio="*">
    <div class="grid">
        <table class="table" width="100%" layoutH="138" cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                    <th width="22">
                        <input type="checkbox" group="ids" class="checkboxCtrl" />
                    </th>
                    
                    <th width="50">
                        编号
                    </th>
                    <th width="50">
                        地区
                    </th>
                    <th width="120">
                        类别
                    </th>
                    <th width="150">
                        名称
                    </th>
                    
                    <th width="40">
                        单位
                    </th>
                    <th width="80">
                        成本（项目）
                    </th>
                    <th width="80">
                        成本（财务）
                    </th>
                    <th>
                        具体要求
                    </th>
                    <th  width="200">
                        价格详细
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model.Data)
                {
                    <tr>
                        <td style="text-align: center">
                            <input name="ids" value="@item.Id" type="checkbox" />
                        </td>
                        
                        <td class="lightgreen">@item.Code
                        </td>
                        <td>
                            @Html.Action("GetAreaById",new {areaId=item.AreaId})
                        </td>

                        <td>@item.BizMaterialCategory.Name<font color="green">/@item.BizMaterialCategory.Code</font>
                        </td>
                        <td>@item.Name
                        </td>
                        
                        <td>@item.Unit
                        </td>
                        <td>@item.ProjectCostPrice
                        </td>
                        <td>@item.FinanceCostPrice
                        </td>
                        <td>@item.Required
                        </td>
                        <td>
                            <table style="width:100%">
                                <tr style="background:#b0e0e6">
                                    <td width="60%">数量</td>
                                    <td width="40%">对外报价</td>
                                </tr>
                                @foreach (var m in item.BizQuotePriceList)
                                {
                                    <tr>
                                        <td>@m.StartNum - @m.EndNum </td>
                                        <td>@m.QuotePrice</td>
                                   </tr>
                                }
                            </table>
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>
@Html.Partial("~/Administrator/Views/Shared/Pager.cshtml", new STX.Admin.Models.PagerModel { Page = Model.Page, Total = Model.Total, PageSize = Model.PageSize })
